package ch6;

import java.util.Scanner;

public class Zxf2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("输入一个正整数：");
        int a = in.nextInt();
        //int a=1;
        int i = 2;
        for (; i <= a; ) {
            while (a%i==0) {
                System.out.println(i);
                a = a / i;
            }
            i++;
        }
    }
}

